/**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
 */
package com.sys.midware.log.biz;

import com.sys.midware.logger.Logger;
import com.sys.midware.logger.LoggerFactory;
/**
 * 
 * <b>Description：</b> 应用logger <br/>
 * <b>ClassName：</b> AppLog <br/>
 * <b>@author：</b> jackyshang <br/>
 * <b>@date：</b> 2016年7月26日 下午7:29:27 <br/>
 * <b>@version: </b>  <br/>
 */
public enum AppLog {
    Config("bspider.config"),
	Common("comm"),
	Image("img"),
	Scd("scd"),
	Statistic("stat");
	
	private Logger logger;
	
	private AppLog(String loggerName){
		this.logger = LoggerFactory.getLogger(loggerName);
	}
	
	public void debug(String message){
		this.logger.debug(message);;
	}
	
	public void info(String message){
		this.logger.info(message);
	}
	
	public void warn(String message){
		this.logger.warn(message);
	}
	
	public void error(String message){
		this.logger.error(message);
	}
	
	public void fatal(String message){
		this.logger.fatal(message);
	}
	
	public void debug(String message, Throwable t){
		this.logger.debug(message, t);
	}
	
	public void info(String message, Throwable t){
		this.logger.info(message, t);
	}
	
	public void warn(String message, Throwable t){
		this.logger.warn(message, t);
	}
	
	public void error(String message, Throwable t){
		this.logger.error(message, t);
	}
	
	public void fatal(String message, Throwable t){
		this.logger.fatal(message, t);
	}
}
